from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from postion import options
from postion import service

driver = webdriver.Chrome(options=options,service=service)
driver.get(r'https://www.baidu.com/')
driver.maximize_window()
sleep(3)

driver.get_screenshot_as_file(r'baidu1.png')
driver.save_screenshot(r'baidu2.png')

driver.quit()